/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DAO;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author Ariel
 */
public class userDao{

    public userDao() {
    }
    
   public void getUsers() throws SQLException {
    databaseConection conect = new databaseConection();
    Connection conexion = conect.getConection();
    
    
    Statement s1 = conexion.createStatement();
                ResultSet rs = s1.executeQuery("SELECT * FROM Users");
                String[] result = new String[20];
                
                
                if(rs!=null){
                    while (rs.next()){
                        for(int i = 0; i <result.length ;i++)
                        {
                            for(int j = 0; j <result.length;j++)
                            {
                                result[j]=rs.getString(i);
                            System.out.println(result[j]);
                        }
                        }
                    }
                    
                    
   }   
}
   
}
